home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 64
/
Volume 64 - JOGO DISK .iso
/
Games
/
We_Are_Human.swf
/
scripts
/
DefineSprite_38_shot
/
frame_1
/
DoAction.as
Wrap
Text File
|
2008-04-25
|
373b
|
15 lines
Xd = _root.p1.bod.spike.Xd;
Yd = _root.p1.bod.spike.Yd;
radAngle = Math.atan2(Yd,Xd);
_rotation = _root.p1.bod.spike._rotation;
_root.spike.push(this);
onEnterFrame = function()
{
if(this._x > 700 or _X < -200 or _Y > 700 or y < -200)
{
this.removeMovieClip();
}
this._x += Math.cos(radAngle) * 15;
this._y += Math.sin(radAngle) * 15;
};